package com.yinhe.music.yhmusic.adapter;

import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yinhe.music.common.GlideHelper.GlideHelper;
import com.yinhe.music.yhmusic.R;
import com.yinhe.music.yhmusic.instrument.InstrumentBean;

/**
 * Created by hasee on 2017/8/15.
 */

public class RecommendInstrumentAdapter extends BaseQuickAdapter<InstrumentBean.InstrumentListBean, BaseViewHolder> {

    public RecommendInstrumentAdapter() {
        super(R.layout.hot_singer_item);
    }

    @Override
    protected void convert(BaseViewHolder helper, InstrumentBean.InstrumentListBean item) {
        helper.setText(R.id.name_view, item.getInstrumentName());
        ImageView image = helper.getView(R.id.image_view);
        GlideHelper.setCircleImageResource(image, item.getIcon(), R.drawable.ic_test_instrument);
    }
}
